import layout from '@/components/layout/index'

const routes = [
        {
            path: '/login',
            name: 'login',
            meta: {
                title: "登录"
            },
            component: () => import('@/views/login/login.vue')
        },


        {
            path: '/sysUser',
            name: 'sysUser',
            component: layout,
            redirect: '/sysUser',
            children: [
                {
                    path: '/sysUser',
                    name: 'sysUser',
                    meta: {
                        title: "用户管理"
                    },
                    component: () => import('@/views/sysuser/sys_user.vue'),
                }
            ]
        },

        {
            path: '/addressBook',
            name: 'addressBook',
            component: layout,
            redirect: '/addressBook',
            children: [
                {
                    path: '/addressBook',
                    name: 'addressBook',
                    meta: {
                        title: "通讯录管理"
                    },
                    component: () => import('@/views/addressbook/address_book.vue'),
                }
            ]
        },

        {
            path: '/notebook',
            name: 'notebook',
            component: layout,
            redirect: '/notebook',
            children: [
                {
                    path: '/notebook',
                    name: 'notebook',
                    meta: {
                        title: "记事本管理"
                    },
                    component: () => import('@/views/notebook/note_book.vue'),
                }
            ]
        },

        {
            path: '/favorite',
            name: 'favorite',
            component: layout,
            redirect: '/favorite',
            children: [
                {
                    path: '/favorite',
                    name: 'favorite',
                    meta: {
                        title: "收藏夹管理"
                    },
                    component: () => import('@/views/favorite/favorite.vue'),
                }
            ]
        },


        {
            path: '/addressBook',
            name: 'addressBook',
            component: layout,
            redirect: '/addressBook',
            children: [
                {
                    path: '/addressBook',
                    name: 'addressBook',
                    meta: {
                        title: "通讯录管理"
                    },
                    component: () => import('@/views/notebook/note_book.vue'),
                }
            ]
        },

        {
            path: '/deptList',
            name: 'deptList',
            component: layout,
            redirect: '/deptList',
            children: [
                {
                    path: '/deptList',
                    name: 'deptList',
                    meta: {
                        title: "部门管理"
                    },
                    component: () => import('@/views/dept/dept_list.vue'),
                }
            ]
        },

        {
            path: '/roleList',
            name: 'roleList',
            component: layout,
            redirect: '/roleList',
            children: [
                {
                    path: '/roleList',
                    name: 'roleList',
                    meta: {
                        title: "角色管理"
                    },
                    component: () => import('@/views/role/role_list.vue'),
                }
            ]
        },


        {
            path: '/sysLog',
            name: 'sysLog',
            component: layout,
            redirect: '/sysLog',
            children: [
                {
                    path: '/sysLog',
                    name: 'sysLog',
                    meta: {
                        title: "系统日志"
                    },
                    component: () => import('@/views/syslog/sys_log.vue'),
                }
            ]
        },

        {
            path: '/home',
            name: 'home',
            component: layout,
            redirect: '/home',
            children: [
                {
                    path: '/home',
                    name: 'Home',
                    meta: {
                        title: "首页"
                    },
                    component: () => import('@/views/home/home.vue'),
                }
            ]
        },

    ]
;

export default routes;
